package cs236369.webserver;

import java.util.Map;

import org.apache.http.HttpRequest;
import org.apache.http.impl.DefaultHttpServerConnection;

public interface ISocketReader extends Runnable {
	/**
	 * Returns the url parameters recieved from the socket.
	 * @return
	 */
	public Map<String,String> getUrlParams();
	
	/**
	 * Returns the path of the file or directory the client requested.
	 * @return
	 */
	public String getPath();
	
	/**
	 * Returnd the connection to the client.
	 * @return
	 */
	public DefaultHttpServerConnection getConnToClient();
	
	/**
	 * Returns the client's request object.
	 * @return
	 */
	public HttpRequest getHttpRequest();
	
	/**
	 * Returns the configuration object generated from the configuration file.
	 * @return
	 */
	public IWebServerConfig getConfig();
	
}
